package com.liming.salesman.entities;

import com.liming.core.impl.persistence.PersistentEntity;
import com.liming.salesman.api.persistence.IDistributorBean;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @类描述： 分销商实体类
 * @创建人：sunlf
 * @创建时间：2014-3-27 下午1:01:59
 * @修改人：sunlf
 * @修改时间：2014-3-27 下午1:01:59
 * @修改备注：
 */
@Entity
@Table(name = "distributor")
@Inheritance(strategy = InheritanceType.JOINED)
@XmlRootElement
public class DistributorBeanImpl extends PersistentEntity implements IDistributorBean {
    //名称
    private String name;
    //联系电话
    private String mobile;
    //地址
    private String address;
    //联系人
    private String contact;
    //邮编
    private String zipcode;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getMobile() {
        return mobile;
    }

    @Override
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String getAddress() {
        return address;
    }

    @Override
    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String getContact() {
        return contact;
    }

    @Override
    public void setContact(String contact) {
        this.contact = contact;
    }

    @Override
    public String getZipcode() {
        return zipcode;
    }

    @Override
    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }
}
